home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
f90
/
ishftc.z
/
ishftc
Wrap
Text File
|
1998-10-30
|
2KB
|
51 lines
ISHFTC(3I) Last changed: 1-6-98
NNAAMMEE
IISSHHFFTTCC - Performs a circular shift of the rightmost bits
SSYYNNOOPPSSIISS
IISSHHFFTTCC (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t [,,[SSIIZZEE==]_s_i_z_e]))
IIMMPPLLEEMMEENNTTAATTIIOONN
UNICOS, UNICOS/mk, and IRIX systems
SSTTAANNDDAARRDDSS
Fortran 90
DDEESSCCRRIIPPTTIIOONN
The IISSHHFFTTCC intrinsic function performs a circular shift of the
rightmost bits. It accepts the following arguments:
_i Must be of type integer.
_s_h_i_f_t Must be of type integer. The absolute value of _s_h_i_f_t must
be less than or equal to _s_i_z_e.
_s_i_z_e Must be of type integer. The value of _s_i_z_e must be positive
and must not exceed BBIITT__SSIIZZEE((_i)). If _s_i_z_e is absent, it is
as if it were present with the value of BBIITT__SSIIZZEE(_i).
IISSHHFFTTCC is an elemental function. The name of this intrinsic cannot be
passed as an argument.
RREETTUURRNN VVAALLUUEESS
The result type and type parameter are the same as _i. The result has
the value obtained by shifting the _s_i_z_e rightmost bits of _i circularly
by _s_h_i_f_t positions. If _s_h_i_f_t is positive, the shift is to the left;
if _s_h_i_f_t is negative, the shift is to the right; and if _s_h_i_f_t is zero,
no shift is performed. No bits are lost. The unshifted bits are
unaltered. The bit model defines the interpretation of an integer
value as a sequence of bits. For more information on the model, see
the MMOODDEELLSS(3I) man page.
EEXXAAMMPPLLEESS
IISSHHFFTTCC((33,, 22,, 33)) has the value 5.
SSEEEE AALLSSOO
MMOODDEELLSS(3I)
_I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
printed version of this man page.